
package phasebookws;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;


/**
 * <p>Java class for usermessage complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="usermessage">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="photoId" type="{http://ejb.api/}userphoto" minOccurs="0"/>
 *         &lt;element name="postedOn" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         &lt;element name="textMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="userboard" type="{http://ejb.api/}messageboard" minOccurs="0"/>
 *         &lt;element name="userprofile1" type="{http://ejb.api/}userprofile" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "usermessage", propOrder = {
    "id",
    "photoId",
    "postedOn",
    "textMessage",
    "userboard",
    "userprofile1"
})
public class Usermessage {

    protected int id;
    protected Userphoto photoId;
    @XmlSchemaType(name = "dateTime")
    protected XMLGregorianCalendar postedOn;
    protected String textMessage;
    protected Messageboard userboard;
    protected Userprofile userprofile1;

    /**
     * Gets the value of the id property.
     * 
     */
    public int getId() {
        return id;
    }

    /**
     * Sets the value of the id property.
     * 
     */
    public void setId(int value) {
        this.id = value;
    }

    /**
     * Gets the value of the photoId property.
     * 
     * @return
     *     possible object is
     *     {@link Userphoto }
     *     
     */
    public Userphoto getPhotoId() {
        return photoId;
    }

    /**
     * Sets the value of the photoId property.
     * 
     * @param value
     *     allowed object is
     *     {@link Userphoto }
     *     
     */
    public void setPhotoId(Userphoto value) {
        this.photoId = value;
    }

    /**
     * Gets the value of the postedOn property.
     * 
     * @return
     *     possible object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public XMLGregorianCalendar getPostedOn() {
        return postedOn;
    }

    /**
     * Sets the value of the postedOn property.
     * 
     * @param value
     *     allowed object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public void setPostedOn(XMLGregorianCalendar value) {
        this.postedOn = value;
    }

    /**
     * Gets the value of the textMessage property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getTextMessage() {
        return textMessage;
    }

    /**
     * Sets the value of the textMessage property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setTextMessage(String value) {
        this.textMessage = value;
    }

    /**
     * Gets the value of the userboard property.
     * 
     * @return
     *     possible object is
     *     {@link Messageboard }
     *     
     */
    public Messageboard getUserboard() {
        return userboard;
    }

    /**
     * Sets the value of the userboard property.
     * 
     * @param value
     *     allowed object is
     *     {@link Messageboard }
     *     
     */
    public void setUserboard(Messageboard value) {
        this.userboard = value;
    }

    /**
     * Gets the value of the userprofile1 property.
     * 
     * @return
     *     possible object is
     *     {@link Userprofile }
     *     
     */
    public Userprofile getUserprofile1() {
        return userprofile1;
    }

    /**
     * Sets the value of the userprofile1 property.
     * 
     * @param value
     *     allowed object is
     *     {@link Userprofile }
     *     
     */
    public void setUserprofile1(Userprofile value) {
        this.userprofile1 = value;
    }

}
